package com.crane.oss.school.bean.request.student;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月26日 14时24分54秒
 */
@ApiModel(description = "新增学生参数")

@Getter
@Setter
@ToString
public class AddStudentReq implements Serializable {

	private static final long serialVersionUID = -5283323972754743892L;

    @ApiModelProperty(value = "名字", name = "name")
    @Size(max = 10, message = "名字长度超长")
    @NotNull(message = "名字不能为空")
    private String name;

    @ApiModelProperty(value = "性别 0男  1女", name = "sex")
    private Integer sex;

    @ApiModelProperty(value = "校区id", name = "schoolId")
    private Long schoolId;

    @ApiModelProperty(value = "班级id", name = "classId")
    private Long classId;

    @ApiModelProperty(value = "入学年份", name = "termBeginTime")
    @Size(max = 4, message = "入学年份长度超长")
    private String termBeginTime;

    @ApiModelProperty(value = "编号", name = "number")
    private Integer number;

    @ApiModelProperty(value = "学号", name = "sn")
    @Size(max = 10, message = "学号长度超长")
    private String sn;

    @ApiModelProperty(value = "出生日期", name = "birthday")
    private String birthday;

    @ApiModelProperty(value = "年龄", name = "age")
    private Integer age;

    @ApiModelProperty(value = "身高 单位 cm", name = "height")
    private Integer height;

    @ApiModelProperty(value = "体重 单位kg", name = "weight")
    private Integer weight;

    @ApiModelProperty(value = "学校id", name = "partyId", hidden = true)
    private Long partyId;

    @ApiModelProperty(value = "系统用户id", name = "createUesrId", hidden = true)
    private Long createUesrId;

}
